﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using CsvHelper.Configuration.Attributes;

namespace DataAchive.Model.Excel.Export
{
    public class AllNGInfoReport
    {

        private int? _id;
    
        [Column("id")]
        public int? ID { get { return _id; } set { _id = value; } }

        private string _lotid;
        [Column("lotid")]
        public string Lot_Id { get { return _lotid; } set { _lotid = value; } }


        private string _info;
        [Column("info")]
        public string Info { get { return _info; } set { _info = value; } }

        private string _image;
        [Column("image")]
        public string Image { get { return _image; } set { _image = value; } }

        private int? _checked;
        [Column("Checked")]
        public int? Checked { get { return _checked; } set { _checked = value; } }

        private DateTime? _date;
        [Column("date")]
        public DateTime? Date { get { return _date; } set { _date = value; } }

        private int? _type;
        [Column("type")]
        public int? Type { get { return _type; } set { _type = value; } }

        private string _aiinfo;
        [Column("aiinfo")]
        public string AI_Info { get { return _aiinfo; } set { _aiinfo = value; } }


        private int? _site_id;
        [Column("site_id")]
        public int? Site_Id { get { return _site_id; } set { _site_id = value; } }

        private DateTime? _finishtime;
        [Column("finishtime")]
        public DateTime? Finish_Time { get { return _finishtime; } set { _finishtime = value; } }

        private string _airesult;
        [Column("airesult")]
        public string AI_Result { get { return _airesult; } set { _airesult = value; } }

        private string _manualresult;
        [Column("manualresult")]
        public string Manua_Result { get { return _manualresult; } set { _manualresult = value; } }

        private int? _mes_check;
        [Column("mes_check")]
        public int? Mes_Check { get { return _mes_check; } set { _mes_check = value; } }

        //是否超时数据 新增
        [Column("Is_Timeout")]
        public bool? Is_Timeout { get; set; }
        //"超时条码判定。1:NG,2:OK,3:AI结果,4:不分类"  新增
        [Column("TimeoutClassify")]
        public int? TimeoutClassify { get; set; }




        private string _line_id;
        [Column("line_id")]
        public string Line_Id { get { return _line_id; } set { _line_id = value; } }

        private string _equipment_id;
        [Column("equipment_id")]
        public string Equipment_Id { get { return _equipment_id; } set { _equipment_id = value; } }

        private string _ip;
        [Column("ip")]
        public string IP { get { return _ip; } set { _ip = value; } }

        private int? _row_number;
        [Column("row_number")]
        public int? Row_Number { get { return _row_number; } set { _row_number = value; } }

        private int? _row_type;
        [Column("row_type")]
        public int? Row_Type { get { return _row_type; } set { _row_type = value; } }

        private string _row_order;
        [Column("row_order")]
        public string Row_Order { get { return _row_order; } set { _row_order = value; } }

        private int? _column_number;
        [Column("column_number")]
        public int? Colum_Number { get { return _column_number; } set { _column_number = value; } }


        private int? _column_type;
        [Column("column_type")]
        public int? Colum_Type { get { return _column_type; } set { _column_type = value; } }

        private string _column_order;
        [Column("column_order")]
        public string Colum_Order { get { return _column_order; } set { _column_order = value; } }

        private int? _top_bottom_margin;
        [Column("top_bottom_margin")]
        public int? Top_Bottom_Margin { get { return _top_bottom_margin; } set { _top_bottom_margin = value; } }

        private int? left_right_margin;
        [Column("left_right_margin")]
        public int? Left_Right_Margin { get { return left_right_margin; } set { left_right_margin = value; } }

        private string shift_start_time;
        [Column("shift_start_time")]
        public string Shift_Start_Time { get { return shift_start_time; } set { shift_start_time = value; } }

        private int? _shiftings;
        [Column("shiftings")]
        public int? Shiftings { get { return _shiftings; } set { _shiftings = value; } }

        private int? _cuttentshift;
        [Column("currentshift")]
        public int? Cuttent_Shift { get { return _cuttentshift; } set { _cuttentshift = value; } }



        private string _classify;
        [Column("classify")]
        public string Classify { get { return _classify; } set { _classify = value; } }

        private double? _px;
        [Column("px")]
        public double? PX { get { return _px; } set { _px = value; } }

        private double? _py;
        [Column("py")]
        public double? PY { get { return _py; } set { _py = value; } }

        private double? _width;
        [Column("width")]
        public double? Width { get { return _width; } set { _width = value; } }

        private double? _height;
        [Column("height")]
        public double? Height { get { return _height; } set { _height = value; } }


        private string _creator;
        [Column("creator")]
        public string Creator { get { return _creator; } set { _creator = value; } }

        private string _celllocation;
        [Column("celllocation")]
        public string Cell_Location { get { return _celllocation; } set { _celllocation = value; } }


    }


    public class AllNGInfoRepChange
    {

        private int? _id;
        [Name("id")]
        [Description("id")]
        public int? ID { get { return _id; } set { _id = value; } }

        private string _lotid;

        [Name("条码")]
        [Description("条码")]
        public string Lot_Id { get { return _lotid; } set { _lotid = value; } }


        private string _info;
        [Name("info")]
        [Description("info")]
        public string Info { get { return _info; } set { _info = value; } }


        private int? _checked;
        [Name("checked")]
        [Description("checked")]
        public int? Checked { get { return _checked; } set { _checked = value; } }

        private string _date;
        [Name("创建日期")]
        [Description("创建日期")]
        public string Date { get { return _date; } set { _date = value; } }

        private string _type;
        [Name("type")]
        [Description("type")]
        public string Type { get { return _type; } set { _type = value; } }

        private string _aiinfo;
        [Name("aiinfo")]
        [Description("aiinfo")]
        public string AI_Info { get { return _aiinfo; } set { _aiinfo = value; } }


        private int? _site_id;
        [Name("site_id")]
        [Description("site_id")]
        public int? Site_Id { get { return _site_id; } set { _site_id = value; } }

        private string _finishtime;
        [Name("判定结束时间")]
        [Description("判定结束时间")]
        public string Finish_Time { get { return _finishtime; } set { _finishtime = value; } }

        private string _airesult;
        [Name("Ai结果")]
        [Description("Ai结果")]
        public string AI_Result { get { return _airesult; } set { _airesult = value; } }

        private string _manualresult;
        [Name("手动判定结果")]
        [Description("手动判定结果")]
        public string Manua_Result { get { return _manualresult; } set { _manualresult = value; } }

        private int? _mes_check;
        [Name("mes_check")]
        [Description("mes_check")]
        public int? Mes_Check { get { return _mes_check; } set { _mes_check = value; } }


        private string _line_id;
        [Name("线别号")]
        [Description("线别号")]
        public string Line_Id { get { return _line_id; } set { _line_id = value; } }

        private string _equipment_id;
        [Name("设备号")]
        [Description("设备号")]
        public string Equipment_Id { get { return _equipment_id; } set { _equipment_id = value; } }

        private string _ip;
        [Name("ip")]
        [Description("ip")]
        public string IP { get { return _ip; } set { _ip = value; } }

        private int? _row_number;
        [Name("row_number")]
        [Description("row_number")]
        public int? Row_Number { get { return _row_number; } set { _row_number = value; } }

        private int? _row_type;
        [Name("row_type")]
        [Description("row_type")]
        public int? Row_Type { get { return _row_type; } set { _row_type = value; } }

        private string _row_order;
        [Name("row_order")]
        [Description("row_order")]
        public string Row_Order { get { return _row_order; } set { _row_order = value; } }

        private int? _column_number;
        [Name("column_number")]
        [Description("column_number")]
        public int? Colum_Number { get { return _column_number; } set { _column_number = value; } }


        private int? _column_type;
        [Name("column_type")]
        [Description("column_type")]
        public int? Colum_Type { get { return _column_type; } set { _column_type = value; } }

        private string _column_order;
        [Name("column_order")]
        [Description("column_order")]
        public string Colum_Order { get { return _column_order; } set { _column_order = value; } }

        private int? _top_bottom_margin;
        [Name("图片上边距")]
        [Description("图片上边距")]
        public int? Top_Bottom_Margin { get { return _top_bottom_margin; } set { _top_bottom_margin = value; } }

        private int? left_right_margin;
        [Name("图片坐边距")]
        [Description("图片坐边距")]
        public int? Left_Right_Margin { get { return left_right_margin; } set { left_right_margin = value; } }

        private string shift_start_time;
        [Name("换班开始时间")]
        [Description("换班开始时间")]
        public string Shift_Start_Time { get { return shift_start_time; } set { shift_start_time = value; } }

        private int? _shiftings;
        [Name("班次")]
        [Description("班次")]
        public int? Shiftings { get { return _shiftings; } set { _shiftings = value; } }

        private int? _cuttentshift;
        [Name("当前班次")]
        [Description("当前班次")]
        public int? Cuttent_Shift { get { return _cuttentshift; } set { _cuttentshift = value; } }



        private string _classify;
        [Name("classify")]
        [Description("classify")]
        public string Classify { get { return _classify; } set { _classify = value; } }

        private double? _px;
        [Name("X坐标")]
        [Description("X坐标")]
        public double? PX { get { return _px; } set { _px = value; } }

        private double? _py;
        [Name("Y坐标")]
        [Description("Y坐标")]
        public double? PY { get { return _py; } set { _py = value; } }

        private double? _width;
        [Name("宽")]
        [Description("宽")]
        public double? Width { get { return _width; } set { _width = value; } }

        private double? _height;
        [Name("高")]
        [Description("高")]
        public double? Height { get { return _height; } set { _height = value; } }


        private string _creator;
        [Name("创建人")]
        [Description("创建人")]
        public string Creator { get { return _creator; } set { _creator = value; } }

        private string _celllocation;
        [Name("celllocation")]
        [Description("celllocation")]
        public string Cell_Location { get { return _celllocation; } set { _celllocation = value; } }


    }
}

